﻿<cffunction name="shaHash" access="public" hint="hash of sha-512">
	
	<cfargument name="string" required="true" type="string">
	<cfargument name="lower" required="false" default="false" type="boolean"> 
	
	<cfset sha = Hash(arguments.string & application.encryptionSalt, "SHA-512")>
	
	<cfif arguments.lower>
		<cfset sha = LCase(sha)>
	</cfif>
	 
	<cfreturn sha>
	 
</cffunction>